Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when running x32 game on x64 system #3134

Merged
merged 4 commits into from
Sep 13, 2023
Merged

Conversation

olanti-p
Copy link
Contributor

Summary

SUMMARY: Infrastructure "Warn when running x32 game on x64 system"

Purpose of change

Many people still don't know the difference between x64 and x32, and it's getting old explaining what these mean when they come complaining about OOM crashes.

Describe the solution

Add a warning on game start that explains what's wrong and how it can be fixed.
The warning will show only when the game is completely sure it is a x32 build running on a x64 os; if detection fails, or cannot be done, the warning isn't shown to avoid false positives.
Additionally, the game will now report bitness in the debug log on launch.

Describe alternatives you've considered

Dropping x32 builds.

Testing

Warning shows properly on Windows with Visual Studio build (x32 and x64 builds on x64 os).
I didn't bother figuring out how to cross-compile for x32 on linux, but it should work as well.

@github-actions github-actions bot added the src changes related to source code. label Sep 13, 2023
@scarf005 scarf005 self-requested a review September 13, 2023 00:20
scarf005
scarf005 previously approved these changes Sep 13, 2023
Copy link
Member

@scarf005 scarf005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Firestorm01X2 Firestorm01X2 merged commit 44e46b5 into upload Sep 13, 2023
@olanti-p olanti-p deleted the check-bitness branch September 14, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants